package com.king.edu.controller;

import com.king.edu.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: HelloController
 * @Description: TODO
 * @Author: wangchangyong
 * @Date: 2020/6/8 16:47
 * @Version: 1.0.0
 **/
@RestController
@RequestMapping("/hello")
public class HelloController {

    @Reference(loadbalance = "roundrobin")
    HelloService helloService;

    @RequestMapping("/say")
    public String sayHello(String name) {
        return helloService.sayHello(name);
    }

}
